package chap4.Task1;
import java.util.Scanner;
public class Task1 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("输入一个整数:");
        int a = input.nextInt();
        int i;
        boolean b = true;
        for (i = 2; i < a; i++) {
            if (i * i == a) {
                b = false;
                break;
            }
        }
        if (!b) {
            System.out.println(a + "是" + i + "的平方");
        } else {
            System.out.println(a + "不是任何数的平方");
        }
    }
}
